package com.cdu.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UserLoginDTO {
    @NotBlank(message = "用户名并不能为空")
    private String username;
    @Length(min = 6,max=15,message = "用户名密码长度不在在{min}和{max}之间")
    private String password;

}
